<% String user = request.getAttribute("user").toString() ; %>
<% String errorLog = (request.getAttribute("errorLog") != null)?request.getAttribute("errorLog").toString():null; %>
<div id="head">
	<div id="divForms">
		<div id="divFormLogin"> 
			<% if ( user.equals("invite") ){ %>
			<form method="post" action="<%= request.getServletPath().substring(1, request.getServletPath().length()) %>" onsubmit="return verification(this);">
		    	<fieldset id="fieldsetFormLogin">
					<legend id="legendFormLogin">Se connecter</legend>
		    		<%= (errorLog !=  null) ? "<label id=\"verif\">"+ errorLog +"</label><br />":""%>
		    		<label for="login" >Login: </label><input id="login" type="text" maxlength="50" name="login" class="alignLeft" /><br />
	        	    <label for="pwd" >Mot de passe: </label><input id="pwd" type="password" maxlength="23" name="pwd" class="alignLeft" /><br />
	        	    <input type="submit" value="Connexion" name="loginSubmit" /> 
				</fieldset>
			</form>
			<% } else { %>
			<form method="post" action="<%= request.getServletPath().substring(1, request.getServletPath().length()) %>">
		    	<fieldset id="fieldsetFormLogin">
					<legend id="legendFormLogin"><%= user %></legend> 
		        	    <input type="submit" value="Deconnexion" name="loginSubmit" /> 
				</fieldset>
			</form>
		<% } %>
		</div>
	</div>
</div>
<div id="youAreHere"><span><a href="Index">Air de Java</a> &#62; <%=request.getAttribute("road") %></span>
	<div id="divFormSearch">
		<form method="get" action="Search">
			<fieldset id="fieldsetFormSearch">
				<input type="text" id="formSearchInput" name="search" maxlength="48" value="Chercher" onfocus="if (this.value == 'Chercher') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Chercher';}" />
				<input type="submit" id="formSearchCommitButton"  value="" name="searchSubmit" />
			</fieldset>
		</form>
	</div>
</div>